package com.recsmile.sgs;

import com.recsmile.sgs.ui.MainFrame;
import com.recsmile.sgs.util.CommandManager;

import javax.swing.*;
import java.lang.reflect.InvocationTargetException;

/**
 * Created by hanyuanliang on 16/8/23.
 */
public class App {

    public static void main(String[] args){
        CommandManager.load();
        //Channel channel;

        try {
            SwingUtilities.invokeAndWait(new Runnable() {
                @Override
                public void run() {
                    try {
                        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                        new MainFrame();
                    } catch (ClassNotFoundException e) {
                        e.printStackTrace();
                    } catch (InstantiationException e) {
                        e.printStackTrace();
                    } catch (IllegalAccessException e) {
                        e.printStackTrace();
                    } catch (UnsupportedLookAndFeelException e) {
                        e.printStackTrace();
                    }


                }
            });
        } catch (InterruptedException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        }


    }
}
